package 汽车项目;

public class Car {
    public static void main(String[] args) {
        int num = 0;
        System.out.println(num);
        Cat cat = null;
        Dog dog = null;
        for (int i = 0;i < 5;i++) {
            cat = new Cat();
            dog = new Dog();

        }
        System.out.println(cat.conter);
        System.out.println(dog.conter);
        System.out.println(cat.VERSION);
    }}
    class Cat{
        public static final String VERSION = "V2.4";
        public int conter = 0;
        public Cat(){
            conter++;
        }
    }
    class Dog{
        public static int conter = 0;
        public  Dog(){
            conter++;
        }




    }


